package com.haizhi.crm.biz.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;

import java.util.List;
import java.util.Map;

/**
 * Created by wangshan on 2018/5/23.
 */
public class MessageUtil {

    public static List<Map<String, String>> toList(Object bean) {
        String text = JSON.toJSONString(bean);
        return JSON.parseObject(text, new TypeReference<List<Map<String, String>>>() {
        });
    }
}
